Skip to content

Conversation

@danielghost
Copy link
Contributor

Fixes #74.

Fix

  • getAttemptsTaken returns incorrect counts following a language change. Remove existing listeners before they are added again following a language change.

@danielghost
Copy link
Contributor Author

Attempted to use the following instead to make it more obvious that the plugin was being re-initialised when changing language, but this seemingly caused issues with other plugins not returning to the correct state:

onLanguageChange(newLanguage, previousLanguage) {
  if (!previousLanguage) return;
  this.stopListening();
  this.initialize();
}

@danielghost danielghost moved this from New to Needs Reviewing in adapt_framework: The TODO Board Jan 2, 2026
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀

@oliverfoster oliverfoster merged commit 2b4faa2 into master Jan 8, 2026
1 check passed
@oliverfoster oliverfoster deleted the issue/74 branch January 8, 2026 16:37
@github-project-automation github-project-automation bot moved this from Needs Reviewing to Recently Released in adapt_framework: The TODO Board Jan 8, 2026
@github-actions
Copy link

github-actions bot commented Jan 8, 2026

🎉 This PR is included in version 1.4.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Recently Released

Development

Successfully merging this pull request may close these issues.

getAttemptsTaken returns incorrect counts following a language change

5 participants